package com.storm.lesson.hbase.state;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class TupleTableConfig implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String tableName; // 表名
	protected String tupleRowKeyField; // RowKey
	protected String tupleTimestampField; // 时间戳
	protected Map<String, Set<String>> columnFamilies; // 列族

	public TupleTableConfig(final String table, final String rowkeyField) {
		this.tableName = table;
		this.tupleRowKeyField = rowkeyField;
		this.tupleTimestampField = "";
		this.columnFamilies = new HashMap<String, Set<String>>();
	}

	public TupleTableConfig(final String table, final String rowkeyField,
			final String tupleTimestampField) {
		this.tableName = table;
		this.tupleRowKeyField = rowkeyField;
		this.tupleTimestampField = tupleTimestampField;
		this.columnFamilies = new HashMap<String, Set<String>>();
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTupleRowKeyField() {
		return tupleRowKeyField;
	}

	public void setTupleRowKeyField(String tupleRowKeyField) {
		this.tupleRowKeyField = tupleRowKeyField;
	}

	public String getTupleTimestampField() {
		return tupleTimestampField;
	}

	public void setTupleTimestampField(String tupleTimestampField) {
		this.tupleTimestampField = tupleTimestampField;
	}

	public Map<String, Set<String>> getColumnFamilies() {
		return columnFamilies;
	}

	public void setColumnFamilies(Map<String, Set<String>> columnFamilies) {
		this.columnFamilies = columnFamilies;
	}

}
